export const formConfig = [
    {
        name: 'device_name',
        type: 'input',
        placeholder: '设备名称',
    },
    {
        name: 'scope_id_list',
        type: 'cascader',
        placeholder: '筛选范围',
        options: [],
    },
]

export const column = [
    {
        label: '集团',
        name: 'group_name',
    },
    {
        label: '公司',
        name: 'company_name',
    },
    {
        label: '工厂',
        name: 'factory_name',
    },
    {
        label: '区域',
        name: 'zone_name',
    },
    {
        label: '设备名称',
        name: 'device_name',
    },
    {
        label: '设备编号',
        name: 'device_code',
    },
    {
        label: '设备类型',
        name: 'type_name',
    },
    {
        label: '测点数量',
        name: 'sensor_count',
    },
    {
        title: '操作',
        name: 'action',
        width: '220',
        buttons: [
            {
                text: '查看',
                click: (val) => {},
            },
            {
                text: '编辑',
                click: (val) => {},
            },
            {
                text: '删除',
                click: (val) => {},
            },
        ],
    },
]

export const column1 = [
    {
        label: '测点名称',
        name: 'sensor_name',
        width: '120',
    },
    {
        label: '地址',
        name: 'address',
        width: '80',
    },
    {
        label: '端口',
        name: 'port',
        width: '80',
    },
    {
        label: '安装方向',
        name: 'direction',
        width: '90',
    },
    {
        label: '测点FS',
        name: 'fs',
        width: '80',
    },
    {
        label: '终端类型',
        name: 'sensor_type',
        width: '140',
    },
    {
        label: '特征值',
        name: 'eigenvalue',
        format: (val) => val,
    },
]
